package com.feihong.txgw.inter.contract.product;

import com.feihong.txgw.json.goodsCart.GoodsCartParser;
import com.feihong.txgw.model.greendao.ShopCarGoodsModel;
import com.feihong.txgw.ui.mvp.model.IBaseModel;
import com.feihong.txgw.ui.mvp.precenter.AbBasePrecenter;
import com.feihong.txgw.ui.mvp.view.IBaseActivity;

import java.util.List;

import io.reactivex.Observable;

/**
 * @Author wangziheng
 * @ProjectName txgw_app
 * @ClassName IProDetailContract
 * @package com.feihong.txgw.inter.contract.product
 * @data 2018/5/8 11:55
 * @Describe
 * @Change
 */
public interface IProDetailContract {

    interface IProDetailMainView extends IBaseActivity{

        void addGoodsToShopCarResult(GoodsCartParser goodsCartParser);

    }

    interface IProDetailMainModel extends IBaseModel{

        Observable<GoodsCartParser> addGoodsToShopCar(List<ShopCarGoodsModel> goods);
    }

    abstract class AbProDetailMainPrecenter extends AbBasePrecenter<IProDetailMainModel,IProDetailMainView>{
        public abstract void addGoodsToShopCar(List<ShopCarGoodsModel> goodsModels);
    }
}
